// -----------------------------
// Author: 		Dhaenens Gert 
// Creation: 	2/13/2015 8:15:22 PM				
// -----------------------------

#ifndef _PlatformProvider_inl
#define _PlatformProvider_inl

namespace Flow
{

	template<typename T>
	T* PlatformProvider::QueryInterface(Char* lpObjectType)
	{
		typedef T* (*CreateFunc)();
		CreateFunc fn = reinterpret_cast<CreateFunc>(RequestFunction(lpObjectType));
		
		if (!fn)
			return nullptr;
		return fn();
	}

}

#endif